//
//  CustonButton.m
//  ZAKER
//
//  Created by dllo on 15/8/24.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "CustonButton.h"

@interface CustonButton ()


@end

@implementation CustonButton

-(void)dealloc
{
    
    [_myImage release];
    [_myLabel release];
    
    [super dealloc];
    
}

-(instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
   
    if (self) {
        
        [self createCell];
    
    }

    return self;
}

#pragma mark - 自定义九个Button样式

- (void)createCell
{
    
    
    self.myImage = [[[UIImageView alloc]initWithFrame:CGRectMake(40 * myWidth, 30 * myHeight, 50 * myWidth, 30 *myHeight)] autorelease];
    [self addSubview:_myImage];
//    [_myImage release];
    
    
    self.myLabel = [[[UILabel alloc]initWithFrame:CGRectMake(0, 70 * myHeight, 121 * myWidth, 40 * myHeight)] autorelease];
    [self addSubview: _myLabel];
    _myLabel.textAlignment = 1;
    _myLabel.font = [UIFont systemFontOfSize:15];
//    [_myLabel release];
    
   

}


@end
